import { responseData } from "@/api/product/trademarkApi/interface.ts";

export interface pageParams {
  page: number;
  limit: number;
  username?:string
}


export interface userItem {
  id?: number;
  name: string;
  username: string;
  password: string;
  phone?: null;
  roleName?: string;
  updateTime?: string;
  createTime?: string;
}

export interface userListInfo {
  countId: null;
  current: number;
  hitCount: boolean;
  maxLimit: null;
  optimizeCountSql: boolean;
  orders: any[];
  pages: number;
  records: userItem[];
  searchCount: boolean;
  size: number;
  total: number;
}


export interface responseUserList {
  data: userListInfo;
}

export interface role {
  id?: number|string;
  roleName: string;
  remark?: null;
  updateTime?: string;
  createTime?: string;
}

export interface responseRole extends responseData {
  data: {
    allRolesList: role[]
    assignRoles: role[]
  };
}
